//
//  SRSettingClockTableViewCell.m
//  SportRing
//
//  Created by Elwin on 14-11-5.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import "SRSettingClockTableViewCell.h"

@implementation SRSettingClockTableViewCellModel



@end

@interface SRSettingClockTableViewCell()

@property(nonatomic, weak)IBOutlet UILabel *settingTitleLabel;
@property(nonatomic, weak)IBOutlet UILabel *settingContentLabel;
@property(nonatomic, weak)IBOutlet UIImageView *settingChooseImageView;

@end

@implementation SRSettingClockTableViewCell

- (void)setSRSettingClockTableViewCellData:(SRSettingClockTableViewCellModel *)model
{
    self.settingContentLabel.text = model.content;
    self.selected = model.choosed;
}

- (void)setTitle:(NSString *)title
{
    self.settingTitleLabel.text = title;
}

- (void)setContent:(NSString *)content
{
    self.settingContentLabel.text = content;
}

- (void)selectRow:(BOOL)selected
{
    if (selected)
    {
        self.settingChooseImageView.hidden = NO;
    }
    else
    {
        self.settingChooseImageView.hidden = YES;
        
    }
}


- (void)awakeFromNib {
    // Initialization code
    self.settingChooseImageView.image = [UIImage imageNamed:@"clock_choose"];

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    [self selectRow:selected];
    // Configure the view for the selected state
}




@end
